package com.player.rest.exception;

import java.io.Serializable;

public class FaultInfo implements Serializable {

	private static final long serialVersionUID = 2446141999576129038L;

	private Integer errorCode;
	private String reason;
	private String resource;
	private String exception;

	public FaultInfo(Integer errorCode, String reason) {
		this(errorCode, reason, null, null);
	}

	public FaultInfo(Integer errorCode, String reason, String resource, String exception) {
		super();
		this.errorCode = errorCode;
		this.reason = reason;
		this.resource = resource;
		this.exception = exception;
	}

	public Integer getErrorCode() {
		return errorCode;
	}

	public String getReason() {
		return reason;
	}

	public String getResource() {
		return resource;
	}

	public String getException() {
		return exception;
	}

	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public void setException(String exception) {
		this.exception = exception;
	}

	@Override
	public String toString() {
		return "FaultInfo [errorCode=" + errorCode + ", exception=" + exception + ", reason=" + reason + ", resource="
				+ resource + "]";
	}

}